package pattern.rmiproxy;

import java.rmi.Naming;

public class GumbalMashineTestDrive
{
	public static void main(String[] args)
	{
		GumballMachineRemote gumballMachineRemote = null;
		int count;
		if(args.length<2)
		{
			System.out.println("gumballmachine");
		}
		try
		{
			count = Integer.parseInt(args[1]);
			gumballMachineRemote = new TestMachine(count);
			Naming.rebind("rmi://www.aaa.com/test", gumballMachineRemote);
		}
		catch (Exception e)
		{
		}
	}
}
